using System;
using System.Collections.Generic;
using System.Text;

namespace Parser.Terms
{
    public class Word: Term
    {
        public Word(string text, int position)
            : base(position)
        {
            _text = text;
        }

        private string _text;

        public string Text
        {
            get { return _text; }
        }

		public override string ToString()
		{
			return Text + " (" + Position + ")";
		}
    }
}
